<?php
/**
 * Created by PhpStorm.
 * User: cen
 * Date: 2020/6/8
 * Time: 22:05
 */

namespace app\index\controller;


use think\Controller;
use app\admin\model\NewsModel;
class zx extends Controller
{
    public function index(){
        $id = $this->request->param('id');


        $res = NewsModel::find($id);
        $this->assign('data',$res);
        return $this->fetch();
    }

     public function index1(){
        return $this->fetch();
    }
     public function index2(){
        return $this->fetch();
    }

}